<?php

namespace app\common\model\tyyh;

class Ads extends CUBase {
	//返回状态文本信息
    public function getTypeTextAttr() {
        $options = loadEnum('AdsType')->get_options();
        try {
            return $options[$this->getData('type')];
        } catch(InvalidArgumentException $e) {
            return null;
        }
    }

}